﻿namespace KLLSVC
{
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Linq;
    using System.Text;

    public class Help
    {
        public static void Log(string message)
        {
            using (System.IO.StreamWriter sw = new System.IO.StreamWriter(
                ConfigurationManager.AppSettings["LOG_FILE_PATH"], true))
            {
                sw.AutoFlush = true;
                sw.WriteLine(string.Format("{0} - {1}",
                    DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), message));
            }
        }
    }
}
